<div class="top shadow">
</div>

<div class="content">
<?=$user_menu?>
<?php
$name= array(
	'name'	=> 'name',
	'id'	=> 'name',
	'value'	=> set_value('name', $name),
	'maxlength'	=> 100,
	'size'	=> 30,
);
$description= array(
	'name'	=> 'description',
	'id'	=> 'description',
	'value'	=> set_value('description', $description),
	'maxlength'	=> 2000,
	'rows'	=> 10,
	'cols'	=> 24,
);
$published= array(
	'name'	=> 'published',
	'id'	=> 'published',
	'value'	=> 1,
	'checked'	=> set_value('published', $published),
);
?>



<?=form_open(); ?>
<table>
	<tr>
		<td><?=form_label('Gallery Name', 'name'); ?></td>
		<td><?=form_input($name); ?></td>
		<td style="color: red;"><?=(isset($g)) ? $g->error->name : ''?></td>
	</tr>
	<tr>
		<td><?=form_label('Description', 'description'); ?></td>
		<td><?=form_textarea($description); ?></td>
		<td style="color: red;"><?=(isset($g)) ? $g->error->description : ''?></td>
	</tr>
	<tr>
		<td><?=form_label('Published', 'published'); ?></td>
		<td><?=form_checkbox($published); ?></td>
	</tr>
</table>
<?=form_submit('submit', 'Update profile!'); ?>
<?=form_close(); ?>
</div>